package pl.bigk.utils.lexengines.period;

import java.util.Locale;

public class PeriodEngineFactory {

	public static PeriodEngine getPeriodEngine(Locale locale) {
		
		if (locale != null) {
			if (PeriodEnginePLImpl.LOCALE_PL.equals(locale)
					|| PeriodEnginePLImpl.LOCALE_PL_pl.equals(locale)) {
				return new PeriodEnginePLImpl();
			}
		}
		
		return new PeriodEnginePLImpl();
	}
	
	public static void main(String[] args) {
		
		Locale l = new Locale("PL", "pl");

		PeriodEngine pe = PeriodEngineFactory.getPeriodEngine(l);
		System.out.println(pe);
		
	}
	
}
